package cn.kgm.event.service;

import cn.kgm.event.IEventHandler;
import cn.kgm.event.service.event.CreateUserEvent;
import cn.kgm.event.service.event.DeleteUserEvent;

public interface UserService {

    abstract class CreateUserHandler implements IEventHandler<CreateUserEvent> {
        @Override
        public CreateUserEvent getEvent() {
            return new CreateUserEvent();
        }
    }

    abstract class DeleteUserHandler implements IEventHandler<DeleteUserEvent> {

        @Override
        public DeleteUserEvent getEvent() {
            return new DeleteUserEvent();
        }
    }
}
